# -*-coding:utf-8 -*-

"""
# File       : test.py
# Time       ：2023/4/3 下午5:40
# Author     ：puppet
# version    ：python 3.8.1
# Description：
"""
import requests

url = "https://api.bilibili.com/x/web-interface/ranking/v2?rid=0&type=all"
res = requests.get(url=url)
print(res)


url2 = "https://time.geekbang.org/serv/v3/product/infos"
head = {
    "User-Agent":"Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/100.0.4896.75 Safari/537.36",
    # "Content-Type":"application/json",
    "Referer":"https://time.geekbang.org/",
}
res2 = requests.post(url=url2, json={}, headers=head)
print(res2)